/*----------------------------------------------------------------------------
 * JqPngFix
 * ---------------------------------------------------------------------------
 * Date      : 2011-10-27
 * Author    : naiyumie
 * ---------------------------------------------------------------------------
 * USAGE
 * ---------------------------------------------------------------------------
 * $(document).jQPngFix();
 * ---------------------------------------------------------------------------
 * EXAMPLE
 * ---------------------------------------------------------------------------
 *
 *----------------------------------------------------------------------------
 */
(function($){
	$.fn.JqPngFix = function(param){
		//ie6 png24 transperency fix
		try {
			$.each($("img[src$=.png],img[src$=.PNG]"), function () {
				var img = $(this);
				img.css({ "width": img.width(), "height": img.height(), "filter": "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.attr("src") + "', sizingMethod='scale')"});
				img.attr({"width": img.width(), "height": img.height(), "src": "/_vendors/images/blank.gif"});
			});
		} catch(e) {
			//alert(e.description)
		}
	}
})(jQuery);